interface FetchMedicalAdviceListAPIResData {
  code: number
  msg: string
  time: string
  data: {
    data: MedicalAdvice[]
    current_page: number
    total: number
    per_page: string
    last_page: number
  }
}

interface FetchMedicalAdviceListAPIParams {
  page: string
  limit: string
}

export function fetchMedicalAdviceListAPI(params: FetchMedicalAdviceListAPIParams, token: string) {
  return httpInstance.get<FetchMedicalAdviceListAPIResData, FetchMedicalAdviceListAPIParams>(
    '/api/reserve_order/doctoradviselist',
    { params, headers: { token } },
  )
}
